﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Lohnefink3D
{
    class Camera
    {
        public Matrix view;

        public Matrix projection;

        public Camera(GraphicsDevice graphicsDevice, Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
        {

            // Criando a view matrix
            view = Matrix.CreateLookAt(cameraPosition, cameraTarget, cameraUpVector);

            // Criando a projection matrix
            projection = Matrix.CreatePerspectiveFieldOfView(
                    MathHelper.ToRadians(45),
                    graphicsDevice.Viewport.AspectRatio,
                    1,
                    10);
        }

        public void Update()
        {

        }
    }
}
